package com.company.cloud.behavior.modules.app.controller.req;

import com.company.cloud.behavior.modules.api.response.UserScoreItemModel;
import com.company.cloud.common.bean.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Getter
@Setter
public class UserScoreSaveParam extends BaseEntity {

    @ApiModelProperty(value = "对象分类", required = true)
    @NotEmpty(message = "对象分类不能为空")
    private String objType;

    @ApiModelProperty(value = "对象编号", required = true)
    @NotEmpty(message = "对象编号不能为空")
    private String objNo;

    @ApiModelProperty(value = "评论内容" ,required = true)
    private String content;

    @ApiModelProperty(value = "评论图片")
    private List<String> image;

    @ApiModelProperty(value = "子评分项分数", required = true)
    @NotNull(message = "子评分项分数不能为空")
    private List<UserScoreItemModel> itemScore;

}
